﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Skywave
{
    public static class StringHelper
    {
        private static List<char> digits = new List<char> { '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' };
        public static bool IsAllDigit(string s)
        {
            var q1 = (from x1 in s.ToCharArray()
                      where digits.Contains(x1)
                      select x1).Count();
            return q1 == s.Length;
        }
    }
}
